//
//  SWProgressView.h
//  DataTransfer
//
//  Created by 宋润理 on 2023/12/20.
//  Copyright © 2023 James. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^CancelBlock)();

NS_ASSUME_NONNULL_BEGIN

@interface SWProgressView : UIView

@property (nonatomic, assign) float progress;
@property (nonatomic, copy) NSString *progressText;


- (instancetype)initWithTitle:(NSString *)title andCancelBlock:(CancelBlock)cancelBlock;

- (void)showWithDefaultProgress;

- (void)dismiss;


@end

NS_ASSUME_NONNULL_END
